//
//  ConfirmOrderVC.m
//  BigJoy
//
//  Created by Rowling on 2017/7/11.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "ConfirmOrderVC.h"
#import "orderHeaderView.h"
#import "OrderCell.h"
#import "OrderFooterView.h"
#import "PayMoneyVC.h"

@interface ConfirmOrderVC ()

@end

@implementation ConfirmOrderVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatUI];
}

-(void)creatUI {
    [self.view addSubview: self.XMTableview];
    self.XMTableview.height -= 50;
    orderHeaderView * header = [orderHeaderView fastLogin];
    OrderFooterView * footer = [OrderFooterView fastLogin];
    header.frame = CGRectMake(0, 0, SCREEN_WIDTH, 100);
    footer.frame = CGRectMake(0, 0, SCREEN_WIDTH, 210);
    self.XMTableview.tableHeaderView = header;
    self.XMTableview.tableFooterView = footer;
}


-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 2;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    OrderCell * cell = [OrderCell cellWithTalbelView:tableView];
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 117;
}

// 提交订单
- (IBAction)payButtonClick:(id)sender {
    PayMoneyVC * vc = [PayMoneyVC new];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
